package com.shiguiwu.springmybatis.mybatis;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @description: 实体类
 * @author: stone
 * @date: Created by 2021/6/21 19:24
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.mybatis
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Valid
public class Book implements Serializable {

    private static final long serialVersionUID = -599300854568700551L;
    private Integer id;

    @NotBlank(message = "bookName 不能是空")
    private String bookName;

    private SexTypeHandle.Sex sex;

}
